﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="DanhMucSanPham.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
            height: 157px;
        }
        .style2
        {
            height: 130px;
        }
        .style3
        {
            height: 19px;
        }
        .style4
        {
            height: 38px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    <asp:DataList ID="DL_DanhMucSanPham" runat="server" CellPadding="4" 
        ForeColor="#333333">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <AlternatingItemStyle BackColor="White" />
        <ItemStyle BackColor="#EFF3FB" />
        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <ItemTemplate>
            <table class="style1" style="width: 600px">
                <tr>
                    <td class="style2" rowspan="3" style="width: 20%;">
                        <A href = '<%# "ChiTietSanPham.aspx?Ma=" + Eval("Ma") %>' ><asp:Image ID="Image1" runat="server" Height="80px" 
                            ImageUrl='<%# Eval("HinhAnh") %>' Width="100px" /> </A>
                    </td>
                    <td class="style3" style="width: 55%; height: 13px;">
                        <asp:HyperLink ID="HyperLink1" runat="server" 
                            NavigateUrl='<%# "ChiTietSanPham.aspx?Ma=" + Eval("Ma") %>' 
                            style="font-weight: 700; color: #3333ff" Text='<%# Eval("Ten") %>' Font-Bold="False" Font-Size="Medium"></asp:HyperLink>
                    </td>
                    <td class="style3" style="width: 30%; height: 13px;">
                    </td>
                </tr>
                <tr>
                    <td class="style3" style="width: 55%; height: 14px">
                        <asp:Label ID="Label1" runat="server" Text="Giá cao nhất hiện tại :" Font-Size="Medium"></asp:Label>
                        &nbsp; 
                        <asp:Label ID="Label5" runat="server" Text='<%# Eval("SoTienCaoNhat") %>' Font-Size="Medium"></asp:Label>
                        &nbsp;
                        <asp:Label ID="Label7" runat="server" Text='<%# Eval("DonViTien") %>' Font-Size="Medium"></asp:Label>
                    </td>
                    <td class="style3" style="width: 30%; height: 14px">
                        <asp:Label ID="Label9" runat="server" Font-Size="Medium" Text="Số lần đặt giá  :"></asp:Label>&nbsp;
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("SoLanDatGia") %>' Font-Size="Medium"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width: 55%; height: 12px;">
                        <asp:Label ID="Label8" runat="server" Font-Size="Medium" Text="Ngày kết thúc đấu giá  :"></asp:Label>
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("NgayKetThuc") %>' Font-Size="Medium"></asp:Label>
                    </td>
                    <td class="style4" style="width: 30%; height: 12px;">
                        <asp:Label ID="Label10" runat="server" Font-Size="Medium" Text="Người bán  :"></asp:Label>
                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("TenDangNhap") %>' Font-Size="Medium"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style3" colspan="3" style="height: 19px">
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("MoTaNganGon") %>' Font-Size="Medium"></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource_SPDG" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gets_SPDG %>" 
        SelectCommand="get_all_available_SPDG" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    <p>
        <asp:HyperLink ID="hyperLink_TrangTruoc" runat="server">Trang trước</asp:HyperLink>
&nbsp;||
        <asp:HyperLink ID="hyperLink_TrangKe" runat="server">Trang kế</asp:HyperLink>
    </p>
    </form>
</body>
</html>
